.class public Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter;
.super Landroid/widget/BaseAdapter;
.source "CarByPriceAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;
    }
.end annotation


# instance fields
.field list:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;",
            ">;"
        }
    .end annotation
.end field

.field listView:Landroid/widget/ListView;

.field private mInflater:Landroid/view/LayoutInflater;


# direct methods
.method public constructor <init>(Ljava/util/ArrayList;Landroid/content/Context;Landroid/widget/ListView;)V
    .locals 1
    .parameter
    .parameter "context"
    .parameter "listView"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;",
            ">;",
            "Landroid/content/Context;",
            "Landroid/widget/ListView;",
            ")V"
        }
    .end annotation

    .prologue
    .line 29
    .local p1, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;>;"
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 31
    iput-object p1, p0, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter;->list:Ljava/util/ArrayList;

    .line 32
    iput-object p3, p0, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter;->listView:Landroid/widget/ListView;

    .line 33
    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter;->mInflater:Landroid/view/LayoutInflater;

    .line 34
    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 38
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter;->list:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .parameter "position"

    .prologue
    .line 43
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .parameter "position"

    .prologue
    .line 49
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 6
    .parameter "position"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    .line 56
    if-nez p2, :cond_0

    .line 57
    iget-object v3, p0, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter;->mInflater:Landroid/view/LayoutInflater;

    const v4, 0x7f030007

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 58
    new-instance v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;

    invoke-direct {v1, p0}, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;-><init>(Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter;)V

    .line 61
    .local v1, holder:Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;
    const v3, 0x7f0b0011

    invoke-virtual {p2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 60
    iput-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->firstLetter:Landroid/widget/TextView;

    .line 62
    const v3, 0x7f0b000f

    invoke-virtual {p2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->name:Landroid/widget/TextView;

    .line 64
    const v3, 0x7f0b0010

    invoke-virtual {p2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 63
    iput-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->minValue:Landroid/widget/TextView;

    .line 66
    const v3, 0x7f0b0012

    invoke-virtual {p2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 65
    iput-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->maxValue:Landroid/widget/TextView;

    .line 67
    const v3, 0x7f0b0013

    invoke-virtual {p2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->pv:Landroid/widget/TextView;

    .line 69
    const v3, 0x7f0b0009

    invoke-virtual {p2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lcom/bitauto/autoeasy/widget/RemoteImageView;

    .line 68
    iput-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->imageView:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    .line 70
    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 74
    :goto_0
    invoke-virtual {p0, p1}, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;

    .line 75
    .local v0, ct:Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;
    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;->getcImage()Ljava/lang/String;

    move-result-object v2

    .line 77
    .local v2, imageUrl:Ljava/lang/String;
    iget-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->imageView:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    const v4, 0x7f020008

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/bitauto/autoeasy/widget/RemoteImageView;->setDefaultImage(Ljava/lang/Integer;)V

    .line 78
    iget-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->imageView:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    iget-object v4, p0, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter;->listView:Landroid/widget/ListView;

    invoke-virtual {v3, v2, p1, v4}, Lcom/bitauto/autoeasy/widget/RemoteImageView;->setImageUrl(Ljava/lang/String;ILandroid/widget/ListView;)V

    .line 79
    iget-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->name:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;->getcName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 80
    iget-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->firstLetter:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;->getcFirstLetter()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 81
    iget-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->minValue:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;->getcMinValue()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 82
    iget-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->maxValue:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;->getcMaxValue()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 83
    iget-object v3, v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;->pv:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;->getcPv()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 84
    return-object p2

    .line 72
    .end local v0           #ct:Lcom/bitauto/autoeasy/selectcar/Object/CarByPriceType;
    .end local v1           #holder:Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;
    .end local v2           #imageUrl:Ljava/lang/String;
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;

    .restart local v1       #holder:Lcom/bitauto/autoeasy/selectcar/Adapter/CarByPriceAdapter$ViewHolder;
    goto :goto_0
.end method
